# Maintainer: Martijn Braam <martijn@brixit.nl>
pkgname=powersupply
pkgver=0.4.0
pkgrel=0
pkgdesc="GTK3 tool for displaying battery and power info"
url="https://gitlab.com/MartijnBraam/powersupply"
arch="noarch"
license="MIT"
depends="python3 py3-gobject3 py3-setuptools gtk+3.0 libhandy"
makedepends="py3-setuptools"
source="
	$pkgname-$pkgver.tar.gz::https://gitlab.com/MartijnBraam/powersupply/-/archive/$pkgver/powersupply-$pkgver.tar.gz
"
options="!check"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 "$builddir"/data/nl.brixit.powersupply.desktop \
		"$pkgdir"/usr/share/applications/nl.brixit.powersupply.desktop
	install -Dm644 "$builddir"/data/nl.brixit.powersupply.svg \
		"$pkgdir"/usr/share/icons/hicolor/scalable/apps/nl.brixit.powersupply.svg

}
sha512sums="db3ee1a1ed2e349db5af4d77a86ee51ef6f6e43c064d6d24ec88551f91e0a0d3c9abed0d80604f91c7f5293f3b5dbae1c03da5b5d616f6f74d5d3d827839b5c0  powersupply-0.4.0.tar.gz"
